<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.njits.common.entity.*" %>

<html>
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/ofc2/swfobject.js"></script>
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/ofc2/json2.js"></script>
<script type="text/javascript" language="javascript">
////定义第一个Flash控件 时段车流量
swfobject.embedSWF("<%=request.getContextPath()%>/ofc2/open-flash-chart.swf?r="+ Math.random() * 100000, "div1", "90%", "350","9.0.0", "expressInstall.swf", 
 {"data-file" : "<%=request.getContextPath()%>/tccghServlet"}, 
 {wmode : "transparent"}
);

////定义第二个Flash控件 时段车流量
swfobject.embedSWF("<%=request.getContextPath()%>/ofc2/open-flash-chart.swf?r="+ Math.random() * 100000, "div2", "44%", "280","9.0.0", "expressInstall.swf", 
 {"data-file" : "<%=request.getContextPath()%>/llDayServlet"}, 
 {wmode : "transparent"}
);

////定义第三个Flash控件 月车流量
swfobject.embedSWF("<%=request.getContextPath()%>/ofc2/open-flash-chart.swf?r="+ Math.random() * 100000, "div3", "44%", "280","9.0.0", "expressInstall.swf", 
 {"data-file" : "<%=request.getContextPath()%>/llXunServlet"}, 
 {wmode : "transparent"}
);
//根据请求一个URL，重新加载第一个Flash控件的数据
function reload1()
{
  tmp = findSWF("div2");
  x = tmp.reload( "<%=request.getContextPath()%>/llDayServlet?s1=0002" ); 
}
		

//查找SWF控件	
function findSWF(movieName) 
{
  if (navigator.appName.indexOf("Microsoft")!= -1) {
    return window[movieName];
  } else {
    return document[movieName];
  }
}
//下拉框查询
function change()
{
 tmp = findSWF("div1");
 var xlvalue=document.getElementById("s1").value;
  
  x = tmp.reload( "<%=request.getContextPath()%>/llDayServlet?s1="+xlvalue ); 
}

//查询按钮
function confirm()
{
 tmp = findSWF("div1");
 //var k1value=document.getElementById("k1").value;
   var k2value=document.getElementById("k2").value;
   tmp2 = findSWF("div2");
    tmp3 = findSWF("div3");
  x = tmp.reload( "<%=request.getContextPath()%>/tcsllServletin?k2="+k2value );
 // x = tmp2.reload( "<%=request.getContextPath()%>/llDayServlet?k1="+k1value+"&k2="+k2value );
 // x = tmp3.reload( "<%=request.getContextPath()%>/llXunServlet?k1="+k1value+"&k2="+k2value );
}
</script>
<head>

<style type="text/css">

#main {
 float: left;
 height: auto;
 width: auto;
 border: 1px solid #0000FF;
}
#left {
 float: left;
 height: 200px;
 width: 630px;
 border: 1px solid #999999;
}
#right {
 float: right;
 height: 400px;
 width: 240px;
 border: 1px solid #0000FF;
}
.left_div {
 border: 1px solid #999999;
}

#bottom {
 float: bottom;
 height: auto;
 width: auto;
 border: 1px solid #0000FF;
}
</style>
<link rel="StyleSheet" href="../../css/css.css" type="text/css" />
</head>


	<body bgcolor="#EDF7F9">
	
		<div id="main">
		    <div id="left">
		         <div id="cx">   
		     
		<br>
		         </div>
			     <div id="div1">   </div>
			 </div>
			 <div id="right">
			 <b><font size="2" color="063F6C">区域内停车场：</font>
		
			</b>
			
		<div class="eXtremeTable" >
      <table id="ec_table"  border="1"  cellspacing="0"  cellpadding="0"  class="table"  width="100%"  class="table_style" >

	<thead>
	
	</tr>
	<tr>
	<th class="table_th">停车场名称</th>
	<th class="table_th">车位数</th>
			
		</tr>
<%
 Object obj= request.getAttribute("parklist");
 
 if (obj!= null){
List parklist = (List)obj; %>
	
	<%for(int i=0;i<parklist.size();i++){
	
			checkinoutEntity form = (checkinoutEntity)parklist.get(i);
			//System.out.println(form.getTccmc()+" "+form.getParknum());
		%>
		<tr>
	
			<td class="table_td"><%=form.getTccmc() %></td>
			<td class="table_td"><%=form.getParknum() %></td>
		</tr>
		<%} } else{System.out.println("obj为空");}%>
	


	</thead>
	<tbody class="tableBody" >
	</tbody>
</table>

</div>	 
			 
			 
			 
			 </div>
			
        </div>
         <div  id="bottom" >
			 <b><font size="2" color="063F6C">建议建设停车场规模：</font>
			
			 	
		<div class="eXtremeTable" >
      <table id="ec_table"  border="1"  cellspacing="0"  cellpadding="0"  class="table"  width="100%"  class="table_style" >

	<thead>
	
	</tr>
	<tr>
	<th class="table_th">区域名称</th>
	<th class="table_th">每日车辆停留数</th>
	<th class="table_th">停车超两小时车辆数</th>
	<th class="table_th">停车场车位总数</th>
	<th class="table_th">建议建设总车位数</th>
			
		</tr>
<%
 Object obj1= request.getAttribute("suggestionlist");
 
 if (obj1!= null){
List suggestionlist = (List)obj1; %>
	
	<%for(int i=0;i<suggestionlist.size();i++){
	
			checkinoutEntity form = (checkinoutEntity)suggestionlist.get(i);
			//System.out.println(form.getTccmc()+" "+form.getParknum());
		%>
		<tr>
	
			<td class="table_td"><%=form.getAreaname() %></td>
			<td class="table_td"><%=form.getParknumday() %></td>
			<td class="table_td"><%=form.getHournum() %></td>
			<td class="table_td"><%=form.getTccnum() %></td>
			<td class="table_td"><%=form.getSunum() %></td>
		</tr>
		<%} } else{System.out.println("obj1为空");}%>
	


	</thead>
	<tbody class="tableBody" >
	</tbody>
</table>
 </div>
</div>	 
			 
	</body>
</html>
